package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.CompanyNews;

public interface CompanyNewsService {

	public CompanyNews getInfo(String id);

	public void updateInfo(CompanyNews companyNews);

	public Serializable save(CompanyNews companyNews);

	public void delete(CompanyNews companyNews);

	public List<CompanyNews> getAll();

	public CompanyNews getModelById(Serializable id);

	public List<CompanyNews> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(CompanyNews companyNews);

	public void saveOrUpdateAll(Collection<CompanyNews> collection);

	public void update(CompanyNews companyNews);

	public List<CompanyNews> getByCriteria(DetachedCriteria dc);

}
